<?php

namespace Core\Session;

use Core\Config;
use Zend\Session\Container;

class RestaurantSessionHelper{

    private static $_instance;

    private static function getNameSpaceInstance(){
        if(!self::$_instance)
            self::$_instance =new Container(Config::getSessionNameSpace());
        return self::$_instance;
    }



    public static function setDomainCode($domain){
        if(!$domain) return;
        $mySession = self::getNameSpaceInstance();
        $mySession->domain = $domain;

    }

    public static function getDomainCode(){
        $mySession = self::getNameSpaceInstance();
       return $mySession->domain;
    }


}